class SystemScreenBean {
  SystemScreenBean({
    required this.children,
    required this.courseId,
    required this.id,
    required this.name,
    required this.order,
    required this.parentChapterId,
    required this.visible,
  });

  final List<SystemScreenBean> children;
  final int? courseId;
  final int? id;
  final String? name;
  final int? order;
  final int? parentChapterId;
  final int? visible;

  factory SystemScreenBean.fromJson(Map<String, dynamic> json){
    return SystemScreenBean(
      children: json["children"] == null ? [] : List<SystemScreenBean>.from(json["children"]!.map((x) => SystemScreenBean.fromJson(x))),
      courseId: json["courseId"],
      id: json["id"],
      name: json["name"],
      order: json["order"],
      parentChapterId: json["parentChapterId"],
      visible: json["visible"],
    );
  }

}

/*
{
	"children": [
		{
			"children": [],
			"courseId": 13,
			"id": 60,
			"name": "Android Studio相关",
			"order": 1000,
			"parentChapterId": 150,
			"visible": 1
		}
	],
	"courseId": 13,
	"id": 150,
	"name": "开发环境",
	"order": 1,
	"parentChapterId": 0,
	"visible": 1
}*/